package homeWork05.Test4;

import java.util.Set;
import java.util.TreeSet;

public class Main {
    public static void main(String[] args) {
        Set<Student> set =  new TreeSet<Student>();
        Student s1 = new Student("张三",01,88);
        Student s2 = new Student("李四",02,89);
        Student s3 = new Student("王五",03,99);
//        set.add(s1);
//        set.add(s2);
//        set.add(s3);
//        for ( Student s : set) {
//            System.out.print(s);
//        }
        Student[] students = new Student[3];
        students[0] = s2;
        students[1] = s1;
        students[2] = s3;
        Student student = new Student();
        student.print(students);
    }
}
